﻿using SheepStorage.Domain.Dto.InputDto;
using SheepStorage.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Transactions;
using Yitter.IdGenerator;

namespace SheepStorage.Service.Interface
{
    public interface ILambWeaningService
    {

        /// <summary>
        /// 羔羊断奶添加
        /// </summary>
        /// <param name="lamb"></param>
        /// <returns></returns>
        Task<int> LambWeaningAdd(List<LambWeaning> lamb);

        /// <summary>
        /// 羔羊断奶列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<List<LambWeaning>> GetLambWeaning(LambWeaningInput input);

        /// <summary>
        /// 批量删除/逻辑删除
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        Task<int> DeleteLambWeaning(params int[] idList);




        /// <summary>
        /// 羔羊断奶单个数据
        /// </summary>
        /// <param name="lambWeaningId"></param>
        /// <returns></returns>
        Task<LambWeaning> LambWeaningInfo(int lambWeaningId);




        /// <summary>
        /// 羔羊断奶修改
        /// </summary>
        /// <param name="lamb"></param>
        /// <returns></returns>
        Task<int> UpdateLambWeaning(LambWeaning lamb);


    }
}
